import request from "../utils/request";

export async function list({page = 1, pageSize}) {
  return request(`/sp/manage/org/sys/menu/sub/overallcontrol`, {page, pageSize});
}

export async function detail({id}) {
  return request(`/sp/manage/org/sys/menu/detail/${id}`);
}

export async function update({data}) {
  // return request(`/sp/manage/org/sys/menu/detail/${id}`);
  return {
    data: data,
    success: true,
    errorMsg: ""
  }
}
